﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ASPPatterns.Chap3.Layered.Model
{
    public class DiscountFactory
    {
        public static IDiscountStrategy GetDiscountStrategyFor(CostomerType costomerType)
        {
            switch (costomerType)
            {
                case CostomerType.Trade:
                    return new TradeDiscountStrategy();
                    
                default:
                    return new NullDiscountStrategy();
            }
        }
    }
}
